<%@ include file="/jsp/common/tagLibs.jsp"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/user/searchForm.js"></script>
<LINK href="${pageContext.request.contextPath}/css/nasarius_style.css" type=text/css rel=stylesheet>
<DIV class=maincol style="MARGIN-TOP: 20px;position: fixed">
<div class=maincol id="printDiv" style="width: 800px;height: 300px; overflow:auto">
<div class=emptytab style="position:absolute; float:left; width:350px; margin-top:15px; overflow:visible;background-color: #DCDCDC;"><font color="#804500" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: 600">Bank/Factors</font></div>
	<c:set var="msg" value="354"/>
	<c:forEach items = "${factorTimeList}" var="factorTime" varStatus="status">
		<div style="position:absolute;margin-left:${msg}px;float:left; overflow:hidden; margin-top:15px; width:${fn:length(factorTime.bankResultList)*91.5}px;background-color: #DCDCDC;" align="center">
			<font color="#804500" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: 600">
				<fmt:formatDate pattern="dd/MM/yyyy" value="${factorTime.fromdt}" />-<fmt:formatDate pattern="dd/MM/yyyy" value="${factorTime.todt}" />
			</font>
		</div>	
		<c:set var="msg" value="${msg + fn:length(factorTime.bankResultList)*92}"/>	
	</c:forEach>
<div class=emptytab style="position:absolute; float:left; margin-top:30px; width:350px; overflow:visible;background-color: #DCDCDC;">&nbsp;</div>
		<c:set var="msg" value="354"/>
		<c:forEach items = "${factorTimeList}" var="factorTime" varStatus="status">
		<c:forEach items="${factorTime.bankResultList}" var="bank" varStatus="status1">
		<div class="showComments" id="<fmt:formatDate pattern="ddMMyyyy" value="${factorTime.fromdt}" />${bank.bankCode}" style="position:absolute;background-color: #DCDCDC;width:90px; margin-top:30px; margin-left:${msg}px;float:left; overflow:visible;cursor: pointer;" align="center" onmouseover="style.textDecoration = 'underline'" onmouseout="style.textDecoration = 'none'">
			<font color="#804500" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: 600">${bank.bankName}
			</font>
		</div>			
		<c:set var="msg" value="${msg + 92}"/>	
		<input type="hidden" value="${bank.bankComments}" id="<fmt:formatDate pattern="ddMMyyyy" value="${factorTime.fromdt}" />${bank.bankCode}hidden" name="<fmt:formatDate pattern="ddMMyyyy" value="${factorTime.fromdt}" />${bank.bankCode}hidden"/>
		</c:forEach>
		</c:forEach>
	<div>
		<c:forEach items = "${factorTimeList}" var="factorTime" varStatus="status">
		<c:forEach items="${factorTime.bankResultList}" var="bank" varStatus="status1">
		<div style="position:absolute; float:left; margin-top:45px; width:350px; overflow:visible;background-color: white;">
		<c:forEach items="${bank.factorScoreCardList}" var="bankScoreCard" varStatus="status2">
		   <c:if test="${status.first && status1.first}">
				<div style="width:350px;background-color: white;"><font color="#000000" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: bold;border:5px; solid #FFFFFF;">${bankScoreCard.factorName}</font></div>
			</c:if>
		</c:forEach>
		</div>
		</c:forEach>
		</c:forEach>
		<c:set var="msg" value="354"/>
		<c:forEach items = "${factorTimeList}" var="factorTime" varStatus="status">
		<c:forEach items="${factorTime.bankResultList}" var="bank" varStatus="status1">
		<div class=cleardiv style="position:absolute;background-color: white; width:90px; margin-top:45px; margin-left:${msg}px;float:left; overflow:visible">
		<c:forEach items="${bank.factorScoreCardList}" var="bankScoreCard" varStatus="status2">	
				<c:if test="${status2.first}">
					<c:set var="msg" value="${msg + 92}"/>		
				</c:if>
				<c:if test="${bankScoreCard.rank == 0}">
					<div style="width:90px;background-color: #736F6E" align="center"><font color="#000000" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: bold">NA</font></div>
			   </c:if>
				<c:if test="${bankScoreCard.rank == 1}">
					<div style="width:90px;background-color: #336600" align="center"><font color="#000000" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: bold">${ bankScoreCard.rank}</font></div>
			   </c:if>
				<c:if test="${bankScoreCard.rank == 2}">
					<div style="width:90px;background-color: #66FF00" align="center"><font color="#000000" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: bold">${ bankScoreCard.rank}</font></div>
			   </c:if>
				<c:if test="${bankScoreCard.rank == 3}">
					<div style="width:90px;background-color: #FFCD33" align="center"><font color="#000000" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: bold">${ bankScoreCard.rank}</font></div>
			   </c:if>		   
				<c:if test="${bankScoreCard.rank == 4}">
					<div style="width:90px;background-color: #FF8C33" align="center"><font color="#000000" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: bold">${ bankScoreCard.rank}</font></div>
			   </c:if>
			   <c:if test="${bankScoreCard.rank == 5}">
					<div style="width:90px;background-color: #CC3300" align="center"><font color="#000000" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: bold">${ bankScoreCard.rank}</font></div>
			   </c:if>
				<c:if test="${bankScoreCard.rank == 6}">
					<div style="width:90px;background-color: #FF0000" align="center"><font color="#000000" style="font-family: Verdana, Geneva, sans-serif; font-size: 12px; font-weight: bold">${ bankScoreCard.rank}</font></div>
			   </c:if>		
			   </c:forEach> 
			   </div>  
		</c:forEach>
	</c:forEach>
	</div>
	</div>
 	<table style="margin-top: 340px;">
 	 		<tr><td colspan="2" align="center"><input height="10px" type="button" onclick="PrintContent();" value=" Print Result "></td></tr>
 			<tr><td colspan="2">&nbsp;</td></tr>
			<tr>
				<td>Comments</td>
					<td><textarea cols="110" rows="3" name="communicationLogMessage" id="communicationLogMessage" class="input jFocus" readonly="readonly" style="height:60px;padding:5px;">
					</textarea></td>
			</tr>	
	</table>
</DIV>